﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sisocana.Core.Interfaces;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Sisocana.Core.Validation;

namespace Sisocana.Core.Models
{
    public class DonacionEconomicaModel:DonacionModel, IDonacionEconomicaModel
    {
        [DisplayName("Enter donation amount here:")]
        [DataType(DataType.Currency)]
        [Required(ErrorMessage = "Donation amount is required")]
        [Range(1, 9999,ErrorMessage = "Donation amount must be between 0 and 9999")]
        public int monto { get; set; }

        [DisplayName("Cardholder's Name:")]
        [Required(ErrorMessage = "Cardholder's Name is required")]
        public string nombreTitular { get; set; }

        [DisplayName("Credit Card Number:")]
        [Required(ErrorMessage = "Credit Card Number is required")]
        [CreditCardAttribute]
        public string nroTarjeta { get; set; }

        [DisplayName("CVV Number:")]
        [Required(ErrorMessage = "CVV Number is required")]
        public string cVVnumber { get; set; }

        [DisplayName("Credit Card Type:")]
        [Required(ErrorMessage = "Credit Card Type is required")]
        public string tipoTarjeta { get; set; }

        [DisplayName("Credit Card Expiration:")]
        [Required(ErrorMessage = "Credit Card Expiration is required")]
        public DateTime fechaVencimiento { get; set; }


        public string ExpMonth { get; set; }

        public string ExpYear { get; set; }

        public bool conPaypal { get; set; }
        public string paypalpayerID { get; set; }
        public string transactionId { get; set; }
        public string nombreONGDefinida { get; set; }
        public string paypalLogin { get; set; }
    }


}
